﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EzDesk.Utility.Web.Extensions
{
    public static class EpochDateTimeExtension
    {
        public static int ToEpoch(this DateTime dateTime)
        {
            return (int)((dateTime.ToUniversalTime().Ticks - 621355968000000000) / 10000000);
        }
    }
}
